export default props => {
  return [
    {
      key: 'line_id',
      render(h, { value, input }) {
        return (
          <el-select modelValue={value} onUpdate:modelValue={input} filterable clearable placeholder='线路选择' onChange={props.getStationList}>
            {props.lineList.value.map((item, index) => <el-option key={item.line_id} label={item.line_name} value={item.line_id} />)}
          </el-select>
        )
      }
    },
    {
      key: 'station_id',
      render(h, { value, input }) {
        return (
          <el-select modelValue={value} onUpdate:modelValue={input} filterable clearable placeholder='车站选择'>
            {props.stationList.value.map((item, index) => <el-option key={item.station_id} label={item.station_name} value={item.station_id} />)}
          </el-select>
        )
      }
    }
  ]
}
